import { ref, defineComponent } from 'vue'
const count = ref(0)
export default defineComponent({
  setup(props, { expose }) {
    const addCount = () => {
      count.value++
      console.log('444', count.value)
    }
    expose({
      addCount
    })

    return (
      <div>
        <span>{count}</span>
      </div>
    )
  }
})
